
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@ include file="/include/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
$(function () {
 getProData() ;
 getCityData() ;
});
        function getProData()  
	    {  
	        $.ajax({          
	             url:"<%=request.getContextPath()%>/back/school/getPro.do",  
	             type : "post",    
	             cache : false,    
	             dataType : "json",   
	             error:function(){  
	             },  
	             success:function(data){
	                var categoryId = document.getElementById('proName');  
	                //清空数组  
	                categoryId.length = 0;  
	                for(var i=0;i<data.length;i++){  
	                     var xValue=data[i].id;    
	                     var xText=data[i].name;    
	                     if("${s.proName}"==xText){
	                     	$("#proName").html(xText);
	                     	break;
	                     }
	                }  
	               
	           }  
	       });  
	    }
	     function getCityData()  
	    {  
	        var pid = "${s.proName}";  
	        $.ajax({          
	             url:"<%=request.getContextPath()%>/back/school/getCity.do", 
	             data: {"proId":pid}, 
	             type : "post",    
	             cache : false,    
	             dataType : "json",   
	             error:function(){  
	             },  
	             success:function(data){
	            
	                var categoryId = document.getElementById('cityName');  
	                //清空数组  
	                categoryId.length = 0;  
	                for(var i=0;i<data.length;i++){  
	                     var xValue=data[i].id;    
	                     var xText=data[i].name;    
	                    if("${s.cityName}"==xText){
	                     	$("#cityName").html(xText);
	                     	break;
	                     }
	                }  
	               
	           }  
	       });  
	    }
   </script>
<title>名校详情</title>


</head>
<body  >
	 
		<form action="<%=request.getContextPath()%>/back/school/add.do" method="post">
		<!-- 添加学校信息 -->
		<div class="box span10 oh">
			<table class="list_table"  id="tb_version_update" >
				<tr class="tr">
					<td align="left">&nbsp;&nbsp;学校名称:</td>
					<td> &nbsp;&nbsp;${s.schoolName}</td>
					<td align="left">&nbsp;&nbsp;学校头像:</td>
					<td> &nbsp;&nbsp;;<a href="<%=imgPath %>${s.schoolLogo}" data-lightbox="image-1" id="showImg" > <IMG alt="名校头像" width="50" height="50" src="<%=imgPath %>${s.schoolLogo}"/></a></td>
				</tr>
				<tr class="tr">
					<td align="left">&nbsp;&nbsp;学校省份:</td>
					<td> &nbsp;&nbsp;<span id="proName"></span></td>
					<td align="left">&nbsp;&nbsp;学校城市:</td>
					<td> &nbsp;&nbsp;<span id="cityName"></span></td>
				</tr>
	            <tr class="tr">
					<td align="left">&nbsp;&nbsp;点赞数量:</td>
					<td> &nbsp;&nbsp;${s.praiseNum}</td>
					<td align="left">&nbsp;&nbsp;收藏数量:</td>
					<td> &nbsp;&nbsp;${s.collectionNum}</td>
				</tr>
				<tr class="tr">
					<td align="left">&nbsp;&nbsp;评论数量:</td>
					<td> &nbsp;&nbsp;${s.commentNum}</td>
					<td align="left">&nbsp;&nbsp;名师数量:</td>
					<td>&nbsp;&nbsp;${s.teacherNum}</td>
				</tr>
				<tr class="tr">
					<td align="left">&nbsp;&nbsp;学员数量:</td>
					<td> &nbsp;&nbsp;${s.studentNum}</td>
					<td align="left">&nbsp;&nbsp;积分值:</td>
					<td> &nbsp;&nbsp;${s.integralValue}</td>
				</tr>
				<tr class="tr">
					<td align="left" >&nbsp;&nbsp;名校描述:</td>
					<td colspan="3"> &nbsp;&nbsp;${s.schoolDes}</td>
				</tr>
					<tr class="tr">
					<td align="left" >&nbsp;&nbsp;名校默认图片:</td>
					<td> &nbsp;&nbsp;;<a href="<%=imgPath %>${s.schoolPic}" data-lightbox="image-1" id="showImg" > <IMG alt="名校头像" width="50" height="50" src="<%=imgPath %>${s.schoolPic}"/></a></td>
				</tr>
				<tr class="tr">
					<td align="left" >&nbsp;&nbsp;名校图片:</td>
					<td colspan="3"> &nbsp;&nbsp; <c:forEach items="${s.picUrl}" var="manager" varStatus="abc">
						<a href="<%=imgPath %>${manager.bigUrl}" data-lightbox="image-1"   > <IMG alt="名校头像" width="50" height="50" src="<%=imgPath %>${manager.smallUrl}"/></a>
					</c:forEach>
					</td>
				</tr>
			</table>
		</div>
		
		</form>
</body>

</html>
